<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="x"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/adgoods.css">
    <script src="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/adgoods.js" charset="utf-8"></script>
</head>
<body>
    <!--导航栏-->
    <div class="mnav ">
        <div class="w">
            <div class="logo fl"><a href="${pageContext.request.contextPath}/allStock">LOGO</a></div>
            <div class="mg_lon fr"><a href="${pageContext.request.contextPath}/tologout">管理员退出</a></div>
        </div>
    </div>

    <div class="w">
        <div class="layui-tab layui-tab-brief adgood w" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title ">
                <li><a href="${pageContext.request.contextPath}/allStock">商品</a></li>
                <li><a href="${pageContext.request.contextPath}/toinsert">添加商品</a></li>
                <li><a href="${pageContext.request.contextPath}/upput">上下架商品</a></li>
                <li class="layui-this"><a href="${pageContext.request.contextPath}/updatee">修改商品</a></li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                        <table border=1 align="center" class="good_table">
                            <thead>
                                <th>编号</th>
                                <th>产品</th>
                                <th>价格</th>
                                <th>S</th>
                                <th>M</th>
                                <th>L</th>
                                <th>总数</th>
                                <th>图片</th>
                                <th>状态</th>
                                <th>修改</th>
                            </thead>
                            <x:forEach items="${stock5}" var="stock5">
                                <tr style="text-align: center">
                                    <td >${stock5.stock_id}</td>
                                    <td >${stock5.product}</td>
                                    <td >${stock5.price}</td>
                                    <td >${stock5.s}</td>
                                    <td >${stock5.m}</td>
                                    <td >${stock5.l}</td>
                                    <td >${stock5.quantity}</td>
                                    <td ><img src="${pageContext.request.contextPath}/${stock5.url}"/></td>
                                    <td >${stock5.status}</td>
                                    <form action="${pageContext.request.contextPath}/updateStock">
                                    <td><input type="hidden" name ="stock_id" value = "${stock5.stock_id}">
                                    	<input type="submit" value="修改"/></td>
                                    	</form>
                                </tr>
                            </x:forEach>
                        </table>
                </div>
            </div>
        </div>
    </div>
    <div class="clearfix"></div>
</body>
</html>